package hu.pasq.dipterv.service;

import hu.pasq.dipterv.domain.Hint;
import hu.pasq.dipterv.repository.HintRepository;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional(rollbackFor = RuntimeException.class)
public class HintService extends GenericService<Hint, Long, HintRepository<Hint, Long>> {

	public Hint findByName(String name){
		return repo.findByName(name);
	}
	
	public Hint find(Long id){
		return repo.findOne(id);
	}
}
